$(function(){
    /* 轮播 */
var int=0;
var flag=true;
function lunbo(){
    if(int==4){
        $(".banner_1 li").eq(int).fadeToggle(500).end().eq(0).fadeToggle(500)

        zhixian(0);
        zhezhao(0);
        int=-1
    }else{
        $(".banner_1 li").eq(int).fadeToggle(500).end().eq(int+1).fadeToggle(500)
        zhixian(int+1);
        zhezhao(int+1);
    }
    int++
}
var t=setInterval(lunbo,2500);
function zhixian(index){
    $(".foot_lits").css("display","none")
    $(".foot_lits").eq(index).css("display","block")
}
function zhezhao(index){
    $(".foot_line").css("display","block")
    $(".foot_line").eq(index).css("display","none")
}
var ttttt;
$(".banner_foot div").on("mouseenter",function(){
    clearInterval(t);
    var moser=$(this).index()
    ttttt=setTimeout(function(){   
        $(".banner_1 li").css("display","none").eq(moser).css("display","block")
        int=moser
        zhezhao(moser)
        zhixian(moser) 
    },500)
})
$(".banner_foot div").on("mouseleave",function(){
        clearTimeout(ttttt);
        t=setInterval(lunbo,2500);
})
$(".banner_1 li").on("mouseenter",function(){
    clearInterval(t);
})
$(".banner_1 li").on("mouseleave",function(){
    t=setInterval(lunbo,2500);
})










    
})